PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Control Manager >

Programming With the Mac OS 8.5 Control Manager


SetControl32BitMinimum

Changes the minimum setting of a control and, if appropriate, redraws it accordingly.

pascal void SetControl32BitMinimum (
                     ControlHandle theControl,
                     SInt32 newMinimum);
theControl
A value of type ControlHandle . Pass a handle to the control whose minimum setting you wish to change.
newMinimum
A signed 32-bit integer. Pass a value specifying the new minimum setting of the control. In general, to avoid unpredictable behavior, do not set the minimum control value higher than the current maximum value.

DISCUSSION

Your application may use the SetControl32BitMinimum function to set a 32-bit value as the minimum setting for a control.


SPECIAL CONSIDERATIONS

If your application uses a 32-bit control minimum value, it should not attempt to obtain this value by calling the pre-Mac OS 8.5 function GetControlMinimum or by accessing the contrlMin field of the ControlRecord structure, because the stored 16-bit value will not accurately reflect the current 32-bit control value. Instead, use the function GetControl32BitMinimum .


VERSION NOTES

Available with Mac OS 8.5 and later.


SEE ALSO

"Settings Values for Standard Controls" in Mac OS 8 Control Manager Reference .


© 1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)